package com.atguigu.ssyx.client.user;

import com.atguigu.ssyx.vo.user.LeaderAddressVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * ClassName: UserFeignClient
 * Package: com.atuguigu.ssyx.client.user
 * Description:
 *
 * @Author: 比特张
 * @Create: 2023/7/22 - 16:23
 * @Version: v1.0
 */
@FeignClient("service-user")//服务名称
public interface UserFeignClient {

    @ApiOperation("根据userid获取提货点地址和团长信息")
    @GetMapping("/api/user/leader/inner/getUserAddressByUserId/{userId}")
     LeaderAddressVo getUserAddressByUserId(@PathVariable("userId") Long userId);
}
